package com.solo.eggsolo.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
/**
 * @description user
 * @author yu
 * @date 2022-06-16
 */
public class User implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    * 用户idr
    */
    private Integer id;

    /**
    * 用户账号r
    */
    private String name;

    /**
    * 密码
    */
    private String password;

    /**
    * 性别
    */
    private Integer gender;

    /**
    * 电话号码
    */
    private String phone;

    /**
    * 头像
    */
    private String avatar;

    /**
    * 注册时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
    * 个人简介
    */
    private String signture;
    
    /**
     * 地区
     */
    private String position;


	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public User(Integer id) {
		super();
		this.id = id;
	}
	
    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSignture() {
        return signture;
    }

    public void setSignture(String signture) {
        this.signture = signture;
    }

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", password=" + password + ", gender=" + gender + ", phone="
				+ phone + ", avatar=" + avatar + ", createTime=" + createTime + ", signture=" + signture + ", position="
				+ position + "]";
	}



}
